package com.carpark.ejb.DAO;

import com.carpark.ejb.Model.ClientsModel;
import com.carpark.ejb.Model.ReceivablesModel;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;
import javax.ejb.Remote;

/**
 *
 * @author Sawior
 */
@Local
public interface ReceivablesDAO {

    public List<ReceivablesModel> getAllReceivable();

    public int getReceivableSize();

    public ReceivablesModel getReceivablesById(Integer id);

    public List<ReceivablesModel> getReceivablesByAmount(Double amount);
    
   public List<ReceivablesModel> getReceivablesByClient(ClientsModel cl);

    public List<ReceivablesModel> getReceivablesByCreationDate(Date creationDate);

    public List<ReceivablesModel> getReceivablesByPayDeadline(Date payDeadline);

    public int getReceivablesByCreationDateSize(Date creationDate);

    public void addReceivable(ReceivablesModel receivable);

    public void updateReceivable(ReceivablesModel receivable);

    public void removeReceivable(Integer id);
}
